package com.hxzy.service.impl;

import com.hxzy.entity.UmsMemberLevel;
import com.hxzy.mapper.UmsMemberLevelMapper;
import com.hxzy.service.UmsMemberLevelService;
import com.hxzy.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class UmsMemberLevelServiceImpl implements UmsMemberLevelService {
    @Override
    public UmsMemberLevel selectByPrimaryKey(Long id) {
        UmsMemberLevel umsMemberLevel=null;
        try (SqlSession session= MybatisUtil.getSqlSessionFactory().openSession()){
            UmsMemberLevelMapper mapper = session.getMapper(UmsMemberLevelMapper.class);
            umsMemberLevel= mapper.selectByPrimaryKey(id);
        }
        return umsMemberLevel;
    }
}
